from PyQt4 import QtGui
from PyQt4.QtGui import QMessageBox

def warn(Texto):
    message = QMessageBox(QMessageBox.Warning,"Aviso",Texto,QMessageBox.NoButton)
    message.exec_()


def center(form):
    screen = QtGui.QDesktopWidget().screenGeometry()
    size =  form.geometry()
    form.move((screen.width()-size.width())/2, ((screen.height()-size.height())/2)-20)
